package com.wyw.design.model.learning.behavioral.interpreter;

/**
 * @Title   终结符
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * @Date 2023/4/17 17:17
 * Update History:
 * Author        Time            Content
 */
public class TerminalExpression extends AbstractExpression{
    private Integer arg;
    public TerminalExpression(Integer arg) {
        this.arg = arg;
    }
    @Override
    int interpreter(Context context) {
        return this.arg;
    }
}


